package com.example.service.impl;

import com.example.mapper.AdminMapper;
import com.example.pojo.VO.Result;
import com.example.pojo.VO.UserVo;
import com.example.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Result getUsers() {
        List<UserVo> list=adminMapper.getUsers();
        return Result.success(list);
    }
}
